package com.fzdy.dataplatform.service.vo.impl;

import com.fzdy.dataplatform.controller.api.statistics.SeachApi;
import com.fzdy.dataplatform.core.dao.Dao;
import com.fzdy.dataplatform.core.service.impl.BaseServiceImpl;
import com.fzdy.dataplatform.dao.vo.AllDeviceStatisticsVoDao;
import com.fzdy.dataplatform.entity.AdminDeviceStatisticsVo;
import com.fzdy.dataplatform.service.vo.AdminDeviceStatisticsVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdminDeviceStatisticsVoServiceImpl extends BaseServiceImpl<AdminDeviceStatisticsVo> implements
        AdminDeviceStatisticsVoService {

    @Autowired
    private AllDeviceStatisticsVoDao allDeviceStatisticsVoDao;

    @Override
    protected Dao getDao() {
        return allDeviceStatisticsVoDao;
    }

    @Override
    public List<AdminDeviceStatisticsVo> getList(SeachApi seachApi) {
        return allDeviceStatisticsVoDao.findAll(seachApi);
    }
}
